package com.yuyou.fn.settlement.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.settlement.entity.FeeCategory;
import com.yuyou.fn.settlement.vo.FeeCategoryDetailVo;
import com.yuyou.fn.settlement.vo.FeeCategoryTreeMapVo;
import com.yuyou.fn.settlement.vo.FeeCategoryVo;

import java.util.List;

/**
 *
 * FeeCategory 表数据服务层接口
 *
 */
public interface IFeeCategoryService extends ISuperService<FeeCategory,Long> {

    FeeCategoryDetailVo findFeeCategoryDetail(Long feeCategoryId);

    Page<FeeCategory> findFeeCategory(int pageNo, int pageSize);

    void saveOrUpdateFeeCategory(Long feeCategoryId, String name, String remark);

    void deleteFeeCategory(Long feeCategoryId);

    List<FeeCategory> findAllFeeCategory();


    void saveOrUpdate(FeeCategoryVo feeCategoryVo);

    List<FeeCategoryTreeMapVo> findTreeCategoryMapVo();

    List<FeeCategoryTreeMapVo> findSubTreeByParentId(Long parentFeeCategoryId);

    FeeCategory findByParentId(Long parentId);
}